package com.talkyun.openx.session;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class HttpServletRequestWrapper extends javax.servlet.http.HttpServletRequestWrapper {

    public HttpServletRequestWrapper(HttpServletRequest req) {
        super(req);
    }

    @Override
    public HttpSession getSession() {
        return this.getSession(true);
    }

    @Override
    public HttpSession getSession(boolean create) {
        return new HttpSessionWrapper(super.getSession().getId());
    }
}